<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?=$this->config->item('charset');?>">
	<title><?=$cate_by_name['cateName']?>类食材_食物分类_食物相克_热量表_<?=$this->config->item('site_name');?></title>
	<meta name="keywords" content="<?=$cate_by_name['cateName']?>的家常菜谱大全,<?=$cate_by_name['cateName']?>菜谱,<?=$cate_by_name['cateName']?>家常菜做法" />
	<meta name="description" content="<?=$this->config->item('site_description');?>" />
	<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
	<link href="<?=base_url('static/css/global.css')?>" rel="stylesheet" type="text/css" media="screen">
	<link href="<?=base_url('static/css/recipe.css')?>" rel="stylesheet" type="text/css" media="screen">

	<script src="<?=path_res('static/js/jquery.js')?>"></script>
	<script src="<?=path_res('static/js/functions.js')?>"></script>
</head>
<body>

<? $this->load->view('header'); ?>
<div id="main" class="clearfix">
	<div class="nav_line">
		<li><a href="<?=base_url()?>">首页</a></li>
		<li>&gt;</li>
		<li><a href="<?=site_url('shicai')?>">食材百科</a></li>
		<li>&gt;</li>
		<li><?=$cate_by_name['cateName']?></li>
	</div>
 	<div class="bxiaobi">
		<div class="bkxbei">
			<h2>常见食物分类</h2>	
			<ul class="pl15 mb35">
				<?php foreach ($category as $row) :?>
					<li class="gl"><a href="<?=site_url('shicai/cate/'.$row['cid'])?>"><?=$row['cateName']?></a></li>
				<?php endforeach;?>
			</ul>			
		</div> 	
		<div class="bklrsort mb15">
			<div class="bksomi">
				<h1><?=$cate_by_name['cateName']?></h1>
					<p class="ligxx pbm">
						<?php foreach ($cate_by_classid as $cate) :?>
							<a href="<?=site_url('shicai/subcate/'.$cate['cid'])?>"><?=$cate['cateName']?></a>
						<?php endforeach;?>  
					</p>
			</div>
		
			<?php foreach ($shicai as $shicai) :?>
				<div class="bklrinfo ligxx pv15">
						<div class="bkmgor mr15">
							<a href="<?=site_url("ingredients/".$shicai['id']."")?>" title="<?=$shicai['title']?>的做法" rel="nofollow">
							<img src="<?=$shicai['pic']?>" width="60" height="60" alt="<?=$shicai['title']?>">
							</a>
						</div>
						<div class="irh3"><a href="<?=site_url("ingredients/".$shicai['id']."")?>" title="<?=$shicai['title']?>的做法"><?=$shicai['title']?></a></div>
						<p><?=cutstr($shicai['intro'], '68')?></p>
				</div>
			<?php endforeach; ?>
			
			<div class="bklrpages mtl">
				<div class="page_PN">
					<div class="pager">
						<?=$this->pagination->create_links();?>
					</div>
				</div>
			</div>
		</div>	
		

	</div>
	 
	<div class="bkright">
			<div class="dpshic">
				<h2>时令食材</h2>
					<?php $i = 0;?>
					<?php foreach ($this->Shicai_mdl->get_shicai_season(15)->result_array() as $sl):?>
					<?php $i++?>
					<div class="scfo <?php if($i%3!=0){echo 'mrm';}?>">
						<a href="<?=site_url('ingredients/'.$sl['id'])?>" title="<?=$sl['title']?>的做法大全">
							<img src="<?=$sl['pic']?>" alt="<?=$sl['title']?>"><?=$sl['title']?>
						</a>
					</div>
					<?php endforeach; ?>
					
			</div>		
		</div>
</div>
<? $this->load->view('footer'); ?>